package com.ruoyi.web.core.config;

import com.ruoyi.web.controller.chat.util.ChangeDTO;

/**
 * TODO
 *
 * @author chenchuan2
 * @date 2023-05-24 16:38:36
 */
public class HfThreadLocal {

    private static InheritableThreadLocal<ChangeDTO> modelLocal = new InheritableThreadLocal<ChangeDTO>();

    public static ChangeDTO getModel() {
        return modelLocal.get();
    }

    public static void setModel(ChangeDTO dto) {
        modelLocal.set(dto);
    }

    public static void clear() {
        modelLocal.remove();
    }


}
